home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 6170 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: news.tau.ac.il!usenet
  2. From: "Avi L." <avil@sapiens.com>
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Help with parallel port programming...
  5. Date: Mon, 25 Mar 1996 15:20:43 +0200
  6. Organization: Sapiens Tech.
  7. Message-ID: <31569DAB.564E@sapiens.com>
  8. References: <4ihu64$1s5@kira.cc.uakron.edu> <31513E38.7885@fs1.ee.man.ac.uk>
  9. NNTP-Posting-Host: honda.sapiens.co.il
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.01 (WinNT; I)
  14.  
  15. Christos Dimitrakakis wrote:
  16. > Chris J Sorg wrote:
  17. > >
  18. > >         I am attempting to read and write data to the parallel.device in order
  19. > > to communicate with an interface I built. I know that the parallel port on
  20.  
  21. > First put the address at a register
  22. > LEA $bfe101,a1
  23. > set for input:
  24. > MOVE.b (a1),0
  25. > set for output
  26. > MOVE.b (a1),255
  27.  
  28. well, hitting the hardware like that isn't necessary and it may confuse the parallel.device. 
  29. the best way to do it is by the using the device's own API to initialize it properly, you 
  30. know things like: comm speed, direction of the data flow (ie input or output) etc. the best 
  31. way is just to open the RKM and have a look inside to see what needs to be done and how. 
  32. also make sure the connected device is functioning properly. who knows, it might be the 
  33. device's fault or even the cable.
  34.  
  35. Avi Lev.
  36.